<?php get_header(); ?>
        
        <!--BEGIN #primary-->
        <div id="primary" class="hfeed">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
			
            <!--BEGIN #hentry-->
            <div id="post-<?php the_ID(); ?>" class="hentry">
                <h1 class="entry-title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h1>
                
               <p class="entry-meta">Written by <span class="author vcard"><?php printf( '<a class="url fn" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></span> on <abbr class="published" title="<?php the_time('c'); ?>"><?php the_time( 'F jS, Y' ); ?></abbr> <span class="meta-sep">&mdash;</span> <span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Leave a Comment', '1 Comment', '% Comments' ); ?></a></span> <?php edit_post_link( 'Edit', '<span class="edit-post">[', ']</span>' ); ?></p>
                
                <!--BEGIN #entry-content-->
                <div class="entry-content">
					<div class="entry-attachment">
                		<a href="<?php echo wp_get_attachment_url( $post->ID ); ?>" title="<?php echo wp_specialchars( get_the_title( $post->ID ), 1 ) ?>" rel="attachment"><?php echo basename( $post->guid ) ?></a>
               		</div>
					<?php the_content(); ?>
				 <!--END #entry-content-->
                </div>
            <!--END #hentry-->
            </div>
            
            <?php comments_template(); ?>
            
            <?php endwhile; ?>

			<?php else : ?>
    	
			<!--BEGIN #four04-->
            <div id="post-0" class="hentry four04">
            	<h1 class="entry-title">Not Found</h1>
                
                <!--BEGIN #entry-content-->
				<div class="entry-content">
               		<p>Sorry, but you are looking for something that isn't here.</p>
					<?php include ( TEMPLATEPATH . '/searchform.php' ); ?>
				<!--END #entry-content-->
				</div>
            <!--END #four04-->
            </div>
            
        	<?php endif; ?>
        <!--END #primary-->
        </div>
        
<?php get_sidebar(); ?>

<?php get_footer(); ?>